<template>
  <div class="parent">
    <h3>父组件 —— 我的数据：a是{{a}}，b是{{b}}，c是{{c}}，d是{{d}}，n是{{n}}</h3>
		<Child :a="a" :b="b" :c="c" :d="d" v-bind="{e:n}" @gengxinA="cunchuA"/>
  </div>
</template>

<script>
	import Child from './Child'

  export default {
    name: 'Index',
		components:{Child},
		data() {
			return {
				a:1,
				b:2,
				c:3,
				d:4,
				n:5
			}
		},
		methods: {
			cunchuA(val){
				this.a = val
			}
		},
  }
</script>

<style lang="less" scoped>
	.parent{
		background-color: rgb(165, 164, 164);
		padding: 20px;
		border-radius: 10px;
	}
</style>
